package com.ruoyi.apartment.service.impl;

import java.util.List;

import com.ruoyi.apartment.domain.HumanApartmentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.apartment.mapper.HumanApartmentMapper;
import com.ruoyi.apartment.domain.HumanApartment;
import com.ruoyi.apartment.service.IHumanApartmentService;

/**
 * 公寓管理Service业务层处理
 * 
 * @author leo
 * @date 2024-10-11
 */
@Service
public class HumanApartmentServiceImpl implements IHumanApartmentService 
{
    @Autowired
    private HumanApartmentMapper humanApartmentMapper;

    /**
     * 查询公寓管理
     * 
     * @param apartmentId 公寓管理主键
     * @return 公寓管理
     */
    @Override
    public HumanApartment selectHumanApartmentByApartmentId(Integer apartmentId)
    {
        return humanApartmentMapper.selectHumanApartmentByApartmentId(apartmentId);
    }

    /**
     * 查询公寓管理列表
     * 
     * @param humanApartment 公寓管理
     * @return 公寓管理
     */
    @Override
    public List<HumanApartment> selectHumanApartmentList(HumanApartment humanApartment)
    {
        return humanApartmentMapper.selectHumanApartmentList(humanApartment);
    }

    /**
     * 新增公寓管理
     * 
     * @param humanApartment 公寓管理
     * @return 结果
     */
    @Override
    public int insertHumanApartment(HumanApartment humanApartment)
    {
        return humanApartmentMapper.insertHumanApartment(humanApartment);
    }

    /**
     * 修改公寓管理
     * 
     * @param humanApartment 公寓管理
     * @return 结果
     */
    @Override
    public int updateHumanApartment(HumanApartment humanApartment)
    {
        return humanApartmentMapper.updateHumanApartment(humanApartment);
    }

    /**
     * 批量删除公寓管理
     * 
     * @param apartmentIds 需要删除的公寓管理主键
     * @return 结果
     */
    @Override
    public int deleteHumanApartmentByApartmentIds(Integer[] apartmentIds)
    {
        return humanApartmentMapper.deleteHumanApartmentByApartmentIds(apartmentIds);
    }

    /**
     * 删除公寓管理信息
     * 
     * @param apartmentId 公寓管理主键
     * @return 结果
     */
    @Override
    public int deleteHumanApartmentByApartmentId(Integer apartmentId)
    {
        return humanApartmentMapper.deleteHumanApartmentByApartmentId(apartmentId);
    }

    /**
     * 查询公寓列表
     * @param humanApartment
     * @return HumanApartmentVo集合
     */
    @Override
    public List<HumanApartmentVo> selectApartmentVoList(HumanApartment humanApartment) {
        return humanApartmentMapper.selectApartmentVoList(humanApartment);
    }


}
